<template>
	<view>
		<cu-custom bgColor="#1C232B" :isBack="true">
		    <block slot="backText"></block>
		    <block slot="content">{{article.title}}</block>
		</cu-custom>
		<view  class="padding">
			<view v-show="loading" class="text-center margin-top text-grey">内容加载中...</view>
			<u-parse :loading="loading" :content="article.content" @loadover="loadover"></u-parse>
		</view>
	</view>
</template>

<script>
	import uParse from "@/components/feng-parse/parse.vue";
	export default {
		components: {
			uParse
		},
		data() {
			return {
				article:{},
				loading:true,
			}
		},onLoad(options) {
			this.$get('mall/article/commondetail',{id:options.id}).then((res)=>{
				this.article = res.data;
			})
		},methods:{
			loadover() {//渲染完成
				console.log('over...')
				this.loading = false;
			}
		}
	}
</script>

<style>
	page {
		background-color: #FFFFFF;
	}
	@import '@/components/feng-parse/parse.css';
</style>
